﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;

namespace CoreShop.Model
{
    public partial class activitymaster
    {
        /// <summary>
        /// 活动id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activityInfoId", IsPrimaryKey = true)]
        public long activityInfoId { get; set; }

        /// <summary>
        /// 活动名称
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activityInfoName", IsNullable = true)]
        public string activityInfoName { get; set; }

        /// <summary>
        /// 活动开始时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activityBeginDate", IsNullable = true)]
        public DateTime activityBeginDate { get; set; }

        /// <summary>
        /// 活动结束时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activityEndDate", IsNullable = true)]
        public DateTime activityEndDate { get; set; }

        /// <summary>
        /// 活动开始时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activityBeginTime", IsNullable = true)]
        public TimeSpan activityBeginTime { get; set; } = TimeSpan.Zero;

        /// <summary>
        /// 活动结束时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activityEndTime", IsNullable = true)]
        public TimeSpan activityEndTime { get; set; } = TimeSpan.Zero;

        /// <summary>
        /// 适用渠道 0全部 1线下2 小程序
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "channelId", IsNullable = true)]
        public int channelId { get; set; }

        /// <summary>
        /// 状态 0 失效 1 有效
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "status", IsNullable = true)]
        public int status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "createTime", IsNullable = true)]
        public DateTime createTime { get; set; }

        /// <summary>
        /// 活动类型id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activityTypeId", IsNullable = true)]
        public int activityTypeId { get; set; }

        /// <summary>
        /// 活动子类型id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "activitySubTypeId", IsNullable = true)]
        public int activitySubTypeId { get; set; }

        /// <summary>
        /// 星期
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "weekdays", IsNullable = true)]
        public string weekdays { get; set; }

        /// <summary>
        /// 活动时间 0按时间范围 1按每天 2按每周 3按每月的日
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "weekdayType", IsNullable = true)]
        public int? weekdayType { get; set; }

        /// <summary>
        /// 适用门店 0 全部 1 指定门店 2 排除门店
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "branchType", IsNullable = true)]
        public int branchType { get; set; }

        /// <summary>
        /// 适用人群 0 全部 1 普通用户 2仅会员
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "onlyVip", IsNullable = true)]
        public int onlyVip { get; set; }

        /// <summary>
        /// 会员等级ids
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "vipTypeIds", IsNullable = true)]
        public string vipTypeIds { get; set; }

        /// <summary>
        /// 购买限制类型 0 不限 1 每人每单每个商品限购数量
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "limitBuyType", IsNullable = true)]
        public int limitBuyType { get; set; }

        /// <summary>
        /// 限购数量
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "limitBuyQty", IsNullable = true)]
        public decimal limitBuyQty { get; set; }

        /// <summary>
        /// 是否与其他商品优惠互斥 0 是 1 否
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "exclusion", IsNullable = true)]
        public int exclusion { get; set; }


        /// <summary>
        /// 是否积分0是1否
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "integral", IsNullable = true)]
        public int integral { get; set; }

        /// <summary>
        /// 参与商品类型 0 全部 1 指定分类 2指定商品
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "goodsType", IsNullable = true)]
        public int goodsType { get; set; }

        /// <summary>
        /// 不参与商品类型 0 无 1 指定分类 2指定商品
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "noGoodsType", IsNullable = true)]
        public int noGoodsType { get; set; }

        /// <summary>
        /// 折扣类型 0 第N件打折 1 第N件几元
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "discountType", IsNullable = true)]
        public int discountType { get; set; }


        /// <summary>
        /// 折扣率/特价（特价/折扣类型入参）
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "discountRate", IsNullable = true)]
        public decimal discountRate { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "updateTime", IsNullable = true)]
        public DateTime updateTime { get; set; }     

    }
}
